scalebutton: Annotate the return type
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 30 Nov 2015 14:09:19 +0000 (14:09 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 30 Nov 2015 14:09:19 +0000 (14:09 +0000)
Instead of just listing the return type of get_plus_button() and
get_minus_button() in the documentation, we can use the (type)
annotation to ensure that the introspection data reflects the actual
type of the returned widget.

gtk/gtkscalebutton.c

index c0ee1c03baa1b16e59e863f7b2c5fc87a8b9e255..4b7040f39f45d55c25938b649873ea21a2023f2e 100644 (file)
@@ -670,7 +670,7 @@ gtk_scale_button_set_adjustment     (GtkScaleButton *button,
  *
  * Retrieves the plus button of the #GtkScaleButton.
  *
- * Returns: (transfer none): the plus button of the #GtkScaleButton as a #GtkButton
+ * Returns: (transfer none) (type Gtk.Button): the plus button of the #GtkScaleButton as a #GtkButton
  *
  * Since: 2.14
  */
@@ -688,7 +688,7 @@ gtk_scale_button_get_plus_button (GtkScaleButton *button)
  *
  * Retrieves the minus button of the #GtkScaleButton.
  *
- * Returns: (transfer none): the minus button of the #GtkScaleButton as a #GtkButton
+ * Returns: (transfer none) (type Gtk.Button): the minus button of the #GtkScaleButton as a #GtkButton
  *
  * Since: 2.14
  */